docs(sdk): describe chat.turn() in the advanced chat agent skill - #4902
docs(sdk): describe chat.turn() in the advanced chat agent skill#4902ericallam wants to merge 3 commits into
Conversation
The bundled skill still told an action to return a StreamTextResult, string or UIMessage to answer, an API #4816 removed. It now describes edit-only actions, chat.turn() for an answer, the action-turn trigger, persistence for both models, and sending actions through useChat.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📜 Recent review details⏰ Context from checks skipped due to timeout. (44)
WalkthroughThe actions documentation separates edit-only actions from actions that call Priority: ⬇️ Low Merge Risk: ⚪ Minimal · up to This updates bundled chat-action guidance to document edit-only actions, turn handling, regeneration, and submission APIs. No concrete merge-blocking risk remains. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Description checkExplanation The description provides detailed context and accurately explains the documentation change, but it does not follow the repository template. It omits the required issue-closing line, checklist, Testing section, Changelog section, and Screenshots section.
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@copilot resolve the merge conflicts in this pull request |
…at-turn # Conflicts: # packages/trigger-sdk/skills/trigger-chat-agent-advanced/SKILL.md Co-authored-by: ericallam <534+ericallam@users.noreply.github.com>
|
Note GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer. |
…te() Document that useChat's regenerate() removes the last assistant message before streaming, while sendMessage with a regenerate action appends without removal, leaving both answers visible. Co-authored-by: Eric Allam <ericallam@users.noreply.github.com>
@trigger.dev/build
trigger.dev
@trigger.dev/core
@trigger.dev/python
@trigger.dev/react-hooks
@trigger.dev/redis-worker
@trigger.dev/rsc
@trigger.dev/schema-to-json
@trigger.dev/sdk
commit: |
Summary
The bundled
trigger-chat-agent-advancedskill still told agents to answer from an action by returning a value, an API #4816 removed. Code generated from it fails at runtime with thechat.turn()error.Before, the skill said:
After:
The section now covers edit-only actions,
chat.turn()and theaction-turntrigger, persistence for both the platform-managed andhydrateMessagesmodels, and sending actions throughuseChat(body.actionoruseChatActions) so the answer renders, withtransport.sendActionnoted as the raw-stream path.Docs-only change to an SDK-bundled skill; no changeset, since the
chat.turn()release note from #4816 already covers the behavior.Raised by Devin on #4884 after merge.
🤖 Generated with Claude Code
https://claude.ai/code/session_01AxuSksX18bj1yhnLpkcQ6a